<?php

class Shop extends CI_Controller {
  public function index() {
    $this->load->library('template');

    $data = array();
    $data['stuff'] = array('1' => 2);
    $data['get'] = $this->session->flashdata('get');
    $data['xcode'] = $this->session->flashdata('flash');

    $this->template->render('shop/index', $data);
  }

  public function acquire() {
    $this->load->helper('url');
    $this->session->set_flashdata('flash', md5(uniqid() . microtime() . rand()));
    $this->session->set_flashdata('get', $this->input->get('x'));
    redirect('/shop/index', 'location', 302);
  }


}


